package cn.com.lyj6851.auth.client.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.com.lyj6851.auth.client.service.ClientService;
import cn.com.lyj6851.common.util.ResultUtil;
import cn.com.lyj6851.common.vo.Result;

/**
 * <p>
 * OAuth2客户端 控制器
 * </p>
 *
 * @author LIQIU
 * @since 2018-04-13
 */

@RestController
@RequestMapping("/client")
public class ClientController {

	@Autowired
    private ClientService clientService;
	
	/**
     * 获取OAuth2客户端列表
     */
	@GetMapping(value = "/list")
	public Result<?> list() {
        return ResultUtil.success(clientService.list());
    }
	
}
